<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%-- <base href="<%=basePath%>"> --%>
<script type="text/javascript" src="<%=basePath%>js/product.js"></script>

<title>employee</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<style type="text/css">
.wide{
	width: 300px;
}
</style>
</head>

<body>

	<div class="contentbox">
		<form action="">
			<p>
				<label for="textfield"><strong>产品编号</strong>
				</label> <input type="text" id="code" class="inputbox" /> <br />
			</p>
			<p>
				<label for="textfield"><strong>产品名</strong>
				</label> <input type="text" id="name" class="inputbox" /> <br />
			</p>
			<p>
				<label for="textfield"><strong>类型</strong>
				</label> <input type="text" id="type" class="inputbox" /> <br />
			</p>
			<p>
				<label for="textfield"><strong>工价</strong>
				</label> <input type="text" id="piecerate" class="inputbox" /> <br />
			</p>
			<p>
				<label for="textfield"><strong>备注</strong>
				</label> <input type="text" id="comment" class="inputbox" /> <br />
			</p><%--
			<!-- <p>
				<label for="textfield"><strong>图片</strong>
				</label> <input type="text" id="pic" class="inputbox" /> <br />
			</p> -->
			--%><p>
				<label for="textfield"><strong>尺寸</strong>
				</label> 
				<select class="wide" id="size">
					<c:forEach items="${sizeMap}" var="size">
					<option value="${size.key}">${size.value}</option>
					</c:forEach>
				</select> 
				<br />
			</p>
			<p>
				<label for="textfield"><strong>颜色</strong>
				</label>
				 <select class="wide" id="color">
					<c:forEach items="${color}" var="color">
					<option value="${color.key}">${color.value}</option>
					</c:forEach>
				</select> 
				<br />
			</p>
		</form>

		<p>
			<br>
			
		</p>
		<input type="submit" value="Submit" class="btn" onclick="productAdd()"/> 
		<input type="reset" value="reset" class="btn" /> 
	</div>

</body>
</html>
